Skip to content

Add declare global guidance to the declaration reference#3542

Open
ShipItAndPray wants to merge 1 commit intomicrosoft:v2from
ShipItAndPray:docs/declare-global-by-example
Open

Add declare global guidance to the declaration reference#3542
ShipItAndPray wants to merge 1 commit intomicrosoft:v2from
ShipItAndPray:docs/declare-global-by-example

Conversation

@ShipItAndPray
Copy link
Copy Markdown

Summary

This adds a new declare global section to the Declaration Reference handbook page.

The change explains:

  • what declare global is used for
  • how to describe a global-modifying module
  • why export {} is needed in declaration files that only use declare global
  • where to read more about global augmentation

This also improves searchability for people looking for declare global, since the term and explanation now appear directly on the page mentioned in the issue.

Closes #3409.

Validation

  • Verified the markdown diff with git diff --check
  • Did not run the repo's pnpm checks in this environment because pnpm is not installed on this machine

@ShipItAndPray ShipItAndPray changed the title Add guidance to the declaration reference Add declare global guidance to the declaration reference Apr 9, 2026
@ShipItAndPray
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

declare global is not explained anywhere

2 participants